from django.db import models
# from DjangoUeditor.models import UEditorField

class Contents(models.Model):
    title = models.CharField(max_length=100,null=True)
    firstleibie = models.CharField(max_length=100,null=True)
    secondleibie = models.CharField(max_length=100,null=True)
    context = models.TextField()
    addTime = models.DateTimeField(auto_now_add=True)
    weights = models.IntegerField()


class Neirong(models.Model):
    title = models.CharField(max_length=100,null=True)
    context = models.TextField()
    addTime = models.DateTimeField(auto_now_add=True)
    firstleibie = models.CharField(max_length=100,null=True)



class Test(models.Model):
    code = models.CharField(max_length=255)
    title = models.CharField(max_length=255)


class Nanyabiaozhun(models.Model):
    # 标准码
    standardcode = models.CharField(max_length=150, null=True)
    # 标准/规范
    standard = models.CharField(max_length=150, null=True)
    # 题目
    title1 = models.CharField(max_length=200, null=True)
    # 中文题目
    title2 = models.CharField(max_length=200, null=True)